package com.wzx.common.pojo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/1/23 - 17:05
 * @description 分页查询请求类
 */
@Data
@ApiModel(value = "PageRequestDto",description = "请求参数")
public class PageRequestDto<T> implements Serializable {
    @ApiModelProperty(value = "当前页码，默认第一页")
    private long page = 1L;
    @ApiModelProperty(value = "每页显示的行，默认显示10行")
    private long size = 10L;
    @ApiModelProperty(value = "请求体实体对象")
    private T body;
}
